package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.entity.Progress;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ProgressMapper extends BaseMapper<Progress> {
    Progress findById(@Param("progress_id") Long pid);
    Progress findProgressByApplicationId(@Param("application_id") Long aid);
    List<Progress> findAllProgress();
    void updateProgress(@Param("progress_id")Long pid,
                        @Param("application_id")Long aid,
                        @Param("subject_id")Long sid,
                        @Param("progress_state")String state);
    void insertProgress(@Param("progress_id")Long pid,
                        @Param("application_id")Long aid,
                        @Param("subject_id")Long sid,
                        @Param("progress_state")String state);

}
